<html>
<head>
<style type="text/css">
td.e1 {background-color:white; color:black}
td.e2 {background-color:white; color:black}
</style>
<head>
<body>

<script type="text/javascript">
    var xmlDoc;
    var path="out.xml";

    if (window.XMLHttpRequest)
      {
      xmlDoc=new window.XMLHttpRequest();
      xmlDoc.open("GET",path,false);
      xmlDoc.send("");
      xmlDoc=xmlDoc.responseXML;
      }
    // IE 5 and IE 6
    else if (ActiveXObject("Microsoft.XMLDOM"))
      {
      xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
      xmlDoc.async=false;
      xmlDoc.load(path);
      }

    document.write("<table border='0'>");

    var x=xmlDoc.getElementsByTagName("IfaceMap")[0].getElementsByTagName("Host");
    
    for (i=0;i<x.length;i++) {
	document.write("<tr><td class='e1'>IP address: </td><td class='e2'>");
	document.write(x[i].getElementsByTagName("IPAddr")[0].childNodes[0].nodeValue);
	document.write("</td><td><tr>");
        document.write(x[i].getElementsByTagName("IPAddr")[0].childNodes[0].nodeValue);
        document.write("</td></tr>");
	break;
      }
      
    document.write("</table>");
</script>

</body>
</html>